package com.demo.common;

import com.jfinal.core.Controller;

public class BaseController extends Controller
{
    public void setBase(){
        setAttr("base", getRequest().getContextPath());     //项目部署路径
    }

    public void render(String view) {
        setBase();
        super.render(view);
    }

}
